package org.chen.request;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 评论请求DTO
 */
@Data
@Builder
public class CommentRequestDTO {
    @NotBlank(message = "目标URL不能为空")
    private String targetUrl;
    
    @NotBlank(message = "评论内容不能为空")
    private String commentContent;
    
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    private String websiteUrl;
}